chore: fix JavaScript lint errors (issue #12411)#12412
Conversation
Replace new Array() constructor with array literal and push as required by stdlib/no-new-array lint rule. Resolves stdlib-js#12411
|
Hello! Thank you for your contribution to stdlib. We noticed that the contributing guidelines acknowledgment is missing from your pull request. Here's what you need to do:
This acknowledgment confirms that you've read the guidelines, which include:
We can't review or accept contributions without this acknowledgment. Thank you for your understanding and cooperation. We look forward to reviewing your contribution! |
|
👋 Hi there! 👋 And thank you for opening your first pull request! We will review it shortly. 🏃 💨 Getting Started
Next Steps
Running Tests LocallyYou can use # Run tests for all packages in the math namespace:
make test TESTS_FILTER=".*/@stdlib/math/.*"
# Run benchmarks for a specific package:
make benchmark BENCHMARKS_FILTER=".*/@stdlib/math/base/special/sin/.*"If you haven't heard back from us within two weeks, please ping us by tagging the "reviewers" team in a comment on this PR. If you have any further questions while waiting for a response, please join our Zulip community to chat with project maintainers and other community members. We appreciate your contribution! Documentation Links |
Resolves #12411
Summary
Fixes 2 lint errors in
lib/node_modules/@stdlib/stats/ztest2/examples/index.jsby replacingnew Array()constructor calls with array literals and.push(), as required by thestdlib/no-new-arraylint rule.Changes
Line 31:
new Array(100)→[]with.push()in loopLine 36:
new Array(80)→[]with.push()in loopRead, understood, and followed the contributing guidelines